package com.maomao.admin.persistence.repository;

import com.maomao.admin.domain.system.entry.SysRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SysRoleRepository extends JpaRepository<SysRole, Long>, JpaSpecificationExecutor<SysRole> {

    List<SysRole> findByRoleName(String roleName);

    List<SysRole> findByRoleKey(String roleKey);
}
